<!--
 * @Author: deliteam 462085920@qq.com
 * @Date: 2023-12-05 17:41:06
 * @Description: 
-->
<template>
    <div class="main-box ">
        <div class="pbox" v-for="(item, index) in list" :key="index" data-aos="fade-up"
            :data-aos-delay="`${index % 3 * 100}`">
            <div class="pull-curtain no-link">
                <NuxtLink to="/press">
                    <div class="inner">
                        <div class="bg-img lazyloaded"><img :src="$picHander(item.img, 'zoom_large')" alt=""></div>
                        <div class="content">
                            <h3 class="heading has-description"><span class="l-tx" v-html="item.title"></span></h3>
                            <p class="description white"><span class="s-tx">{{ item.subTitle }}</span></p>
                        </div>
                        <div class="price" v-if="item.prize">
                            <img :src="item.prize" alt="">
                        </div>
                    </div>
                </NuxtLink>
            </div>
        </div>
        <!-- <div class="clear"></div> -->
    </div>
</template>

<script setup>
const props = defineProps({
    list: {
        type: Array,
        default: []
    }
})
const { $picHander } = useNuxtApp()
</script>

<style lang="scss" scoped>
.price {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 100px;
    z-index: 6;

    img {
        width: 100%;
    }
}

.pull-curtain a:hover .bg-img {
    transform: scale(1.03)
}

.pull-curtain a:hover .bg-img:after {
    opacity: .75
}

.pull-curtain a:hover .heading {
    transition: transform .6s .2s;
}

.pull-curtain a:hover .heading.has-description {
    transform: translateY(-20px)
}

.pull-curtain a:hover .description {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    margin-left: 0;
    transition: margin .6s .4s, max-height 2s, opacity .2s .4s, visibility .2s .4s
}

.pull-curtain .inner,
.pull-curtain a {
    position: relative;
    height: 100%;
    width: 100%
}

.pull-curtain .inner {
    background-color: #fff
}

.pull-curtain a {
    display: inline-block;
    overflow: hidden
}

.pull-curtain .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    z-index: 1;
    background-size: cover;
    background-position: 50% 50%;
    overflow: hidden;
    transition: transform .6s;

    img {

        object-fit: cover;
    }
}

.pull-curtain .bg-img.lazyload:after {
    opacity: 0
}

.pull-curtain .bg-img.lazyload.loaded:after {
    opacity: .4
}

.pull-curtain .bg-img:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0, transparent 30%, #000);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00000000", endColorstr="#000000", GradientType=0);
    opacity: .4;
    transition: opacity .6s
}

.pull-curtain .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 40px 30px
}

.pull-curtain .heading {
    transition: -webkit-transform .6s .2s;
    transition: transform .6s .2s;
    transition: transform .6s .2s, -webkit-transform .6s .2s
}

.pull-curtain .description {
    max-width: 100%;
    margin: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    margin-left: -10px;
    padding-right: 25px;
    transition: margin .6s .4s, max-height 1s, opacity .2s, visibility .2s
}

.pull-curtain.no-link>.inner {
    overflow: hidden
}

.pull-curtain.no-link>.inner:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: hsla(0, 0%, 7%, .9);
    opacity: 0;
    transition: opacity .6s .2s
}

.pull-curtain.no-link .description {
    margin-left: 0
}

.pull-curtain.no-link>.inner:hover:after {
    opacity: 1;
    transition: opacity .6s
}

.pull-curtain.no-link>.inner:hover .heading {
    transition: -webkit-transform .6s .2s;
    transition: transform .6s .2s;
    transition: transform .6s .2s, -webkit-transform .6s .2s
}

.pull-curtain.no-link>.inner:hover .heading.has-description {
    -webkit-transform: translateY(-60px);
    -ms-transform: translateY(-60px);
    transform: translateY(-60px)
}

.pull-curtain.no-link>.inner:hover .description {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    margin-left: 0;
    transition: margin .6s .4s, max-height 2s, opacity .2s .4s, visibility .2s .4s
}

h3.white {
    color: #fff
}

p.white {
    color: #fff
}

@media (max-width:1440px) {
    .pull-curtain .content {
        padding: 30px 35px
    }
}

@media (max-width:1279px) {
    .pull-curtain .heading {
        font-style: 17px;
        line-height: 24px
    }
}

@media (max-width:1024px) {
    .pull-curtain .bg-img:after {
        opacity: .4
    }

    .pull-curtain .heading.has-description {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none
    }

    .pull-curtain .description {
        display: none
    }

    .pull-curtain a:hover .heading.has-description {
        transform: none
    }
}

@media (max-width:768px) {

    .pull-curtain .bg-img:after,
    .pull-curtain .bg-img:after.lazyload.loaded:after {
        opacity: .75
    }

    .pull-curtain .content {
        padding: 20px 16px
    }

    .pull-curtain .heading.has-description {

        transform: translateY(-20px)
    }

    .pull-curtain .description {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        margin-left: 0;
        display: block
    }

    .pull-curtain a:hover .bg-img {
        transform: none
    }

    .pull-curtain a:hover .heading.has-description {
        transform: translateY(-20px)
    }
}


@media (max-width:479px) {
    .pull-curtain .bg-img {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1)
    }

    .pull-curtain .bg-img:after,
    .pull-curtain .bg-img:after.lazyload.loaded:after {
        opacity: .4
    }

    .pull-curtain .heading.has-description {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none
    }

    .pull-curtain .description {
        display: none
    }

    .pull-curtain a:hover .heading.has-description {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none
    }
}

@media only screen and (max-width: 480px) {

    .top-content {
        float: left;
        width: 100%;
        // padding: 30px 0 0 0;
        margin: 0;
        background-color: #fff
    }

    .mediabox {
        float: left;
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0;
        display: block
    }

    .mediapic {
        float: left;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mediapic img {
        max-width: 100%;
        height: auto
    }

    .mediatx {
        float: left;
        width: 100%;
        margin: 20px 0 0 0;
        padding: 0;
    }

    .mediatx h3 {
        font-size: 17px;
        color: #111;
        font-weight: 400;
        margin: 0 0 10px 0
    }

    .mediatx p {
        font-size: 16px;
        color: #555;
        line-height: 30px;
        margin: 0
    }

    .w-mediabox {
        float: left;
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0;
        display: block
    }

    .w-mediabox img {
        max-width: 100%;
        height: auto
    }

    .pbox {
        display: block
    }

    .pull-curtain {
        .bg-img {
            // height: 400px;
            position: relative;

        }

        .heading {
            color: #fff;
        }
    }

    .main-box {
        width: calc(100% - 40px);
        margin: 0 auto 0 auto;
        padding: 0;
    }

    .contact-tx {
        width: 90%;
        margin: 0 5% 25px 5%;
        padding: 0;
        color: #333;
        font-size: 17px;
        line-height: 32px;
        text-align: center
    }

    .bottom-box {
        float: left;
        width: 100%;
        padding: 0;
        margin: -20px 0 50px 0;
    }

    .won {
        width: 97%;
        margin-right: 3%;
        padding: 0;
        position: absolute;
        bottom: 0;
        margin-bottom: 180px;
        z-index: 120;
        text-align: right;
    }

    .won ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .won li {
        margin: 0;
        padding: 0;
        display: inline;
        text-align: center;
    }

    .won img {
        max-width: 50px !important;
        height: 50px;
        padding: 10px 10px;
        margin: 0
    }
}

@media only screen and (min-width: 481px) {

    .top-content {
        float: left;
        width: 100%;
        // padding: 50px 0 -10px 0;
        margin: 0;
        background-color: #fff
    }

    .mediabox {
        float: left;
        width: 47%;
        margin: 0 1.5% 30px 1.5%;
        padding: 0;
        display: block
    }

    .mediapic {
        float: left;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mediapic img {
        max-width: 100%;
        height: auto
    }

    .mediatx {
        float: left;
        width: 100%;
        margin: 20px 0 0 0;
        padding: 0;
    }

    .mediatx h3 {
        font-size: 18px;
        color: #111;
        font-weight: 400;
        margin: 0 0 10px 0
    }

    .mediatx p {
        font-size: 16px;
        color: #555;
        line-height: 30px;
        margin: 0
    }

    .w-mediabox {
        float: left;
        width: 100%;
        margin: 0 0 30px 0;
        padding: 0;
        display: block
    }

    .w-mediabox img {
        max-width: 100%;
        height: auto
    }

    .pbox {
        display: none
    }

    .main-box {
        width: 94%;
        margin: 0 auto 0 auto;
        padding: 0;
    }

    .contact-tx {
        width: 80%;
        margin: 40px 10% 40px 10%;
        padding: 0;
        color: #333;
        font-size: 17px;
        line-height: 32px;
        text-align: center
    }

    .bottom-box {
        float: left;
        width: 100%;
        padding: 0;
        margin: 0 0 80px 0;
    }

    .won {
        width: 97%;
        margin-right: 3%;
        padding: 0;
        position: absolute;
        bottom: 0;
        margin-bottom: 80px;
        z-index: 120;
        text-align: right;
    }

    .won ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .won li {
        margin: 0;
        padding: 0;
        display: inline;
        text-align: center;
    }

    .won img {
        max-width: 60px !important;
        height: 60px;
        padding: 10px 10px;
        margin: 0
    }
}

@media only screen and (min-width: 768px) {
    .top-content {
        float: left;
        width: 100%;
        // padding: 50px 0 0 0;
        margin: 0;
        background-color: #fff
    }

    .mediabox {
        float: left;
        width: 47%;
        margin: 0 1.5% 30px 1.5%;
        padding: 0;
        display: block
    }

    .mediapic {
        float: left;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mediapic img {
        max-width: 100%;
        height: auto
    }

    .mediatx {
        float: left;
        width: 100%;
        margin: 20px 0 0 0;
        padding: 0;
    }

    .mediatx h3 {
        font-size: 18px;
        color: #111;
        font-weight: 400;
        margin: 0 0 10px 0
    }

    .mediatx p {
        font-size: 16px;
        color: #555;
        line-height: 30px;
        margin: 0
    }

    .w-mediabox {
        float: left;
        width: 100%;
        margin: 0 0 30px 0;
        padding: 0;
        display: block
    }

    .w-mediabox img {
        max-width: 100%;
        height: auto
    }

    .pbox {
        display: none
    }

    .main-box {
        width: 96%;
        margin: 0 auto 0 auto;
        padding: 0;
    }

    .contact-tx {
        width: 80%;
        margin: 0 10% 40px 10%;
        padding: 0;
        color: #333;
        font-size: 17px;
        line-height: 32px;
        text-align: center
    }

    .bottom-box {
        float: left;
        width: 100%;
        padding: 0;
        margin: 0 0 70px 0;
    }

    .won {
        width: 97%;
        margin-right: 3%;
        padding: 0;
        position: absolute;
        bottom: 0;
        margin-bottom: 100px;
        z-index: 120;
        text-align: right;
    }

    .won ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .won li {
        margin: 0;
        padding: 0;
        display: inline;
        text-align: center;
    }

    .won img {
        max-width: 60px !important;
        height: 60px;
        padding: 10px 10px;
        margin: 0
    }
}

@media only screen and (min-width: 981px) {
    .top-content {
        float: left;
        width: 100%;
        // padding: 60px 0 10px 0;
        margin: 0;
        background-color: #fff
    }

    .mediabox {
        float: left;
        width: 31.33%;
        margin: 0 1% 30px 1%;
        padding: 0;
        display: block
    }

    .mediapic {
        float: left;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mediapic img {
        max-width: 100%;
        height: 410px
    }

    .mediatx {
        float: left;
        width: 100%;
        margin: 20px 0 0 0;
        padding: 0;
    }

    .mediatx h3 {
        font-size: 18px;
        color: #111;
        font-weight: 400;
        margin: 0 0 10px 0
    }

    .mediatx p {
        font-size: 16px;
        color: #555;
        line-height: 30px;
        margin: 0
    }

    .w-mediabox {
        float: left;
        width: 64.66%;
        margin: 0 1% 30px 1%;
        padding: 0;
        display: block
    }

    .w-mediabox img {
        max-width: 100%;
        height: 410px
    }

    .pbox {
        display: none
    }

    .main-box {
        width: 96%;
        margin: 0 auto 0 auto;
        padding: 0;
    }

    .contact-tx {
        width: 80%;
        margin: 0 10% 50px 10%;
        padding: 0;
        color: #333;
        font-size: 17px;
        line-height: 32px;
        text-align: center
    }

    .bottom-box {
        float: left;
        width: 100%;
        padding: 0;
        margin: 0 0 90px 0;
    }

    .won {
        width: 97%;
        margin-right: 3%;
        padding: 0;
        position: absolute;
        bottom: 0;
        margin-bottom: 50px;
        z-index: 120;
        text-align: right;
    }

    .won ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .won li {
        margin: 0;
        padding: 0;
        display: inline;
        text-align: center;
    }

    .won img {
        max-width: 60px !important;
        height: 60px;
        padding: 10px 10px;
        margin: 0
    }
}

@media only screen and (min-width: 1281px) {
    .pull-curtain {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;

        .bg-img {
            img {
                height: 100%;
                object-fit: cover;
            }
        }
    }

    .top-content {
        float: left;
        width: 100%;
        // padding: 80px 0 90px 0;
        margin: 0;
        background-color: #fff
    }

    .mediabox {
        display: none
    }

    .w-mediabox {
        display: none
    }

    .pbox {
        width: 31.5%;
        padding: 0;
        display: block;
        position: relative;

        &:before {
            background-color: #fff;
            content: "";
            display: block;
            padding-top: 75%;
            width: 100%;
        }
    }

    .main-box {
        width: 100%;
        margin: 0 auto 0 auto;
        padding: 0 10vh;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
    }

    .l-tx {
        font-size: 22px;
        color: #fff;
        font-weight: 400;
        line-height: 30px;
        margin: 0;
        padding: 0
    }

    .s-tx {
        font-size: 17px;
        color: #fff;
        line-height: 30px
    }

    .contact-tx {
        width: 50%;
        margin: 0 25% 80px 25%;
        padding: 0;
        color: #333;
        font-size: 17px;
        line-height: 32px;
        text-align: center
    }

    .wbox {
        float: left;
        width: 64.66%;
        margin: 0 1% 30px 1%;
        padding: 0;
        display: block
    }

    .content h3 {
        margin: 0;
        padding: 0
    }

    .bottom-box {
        float: left;
        width: 100%;
        padding: 0;
        margin: 0 0 110px 0;
    }

    .won {
        width: 97%;
        margin-right: 3%;
        padding: 0;
        position: absolute;
        bottom: 0;
        margin-bottom: 50px;
        z-index: 120;
        text-align: right;
    }

    .won ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .won li {
        margin: 0;
        padding: 0;
        display: inline;
        text-align: center;
    }

    .won img {
        max-width: 80px !important;
        height: 80px;
        padding: 10px 10px;
        margin: 0
    }

}
</style>
